package com.peas.platform.module.icims.expenditure.disbursement.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.expenditure.disbursement.adapter.repository.ExpenditureTreasuryItemRepository;
import com.peas.platform.module.icims.expenditure.disbursement.adapter.repository.po.ExpenditureTreasuryItemPo;
import com.peas.platform.module.icims.expenditure.disbursement.domain.ExpenditureTreasuryItemDomain;
import com.peas.platform.module.icims.expenditure.disbursement.dto.ExpenditureTreasuryItemDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ExpenditureTreasuryItemDomainImpl extends BaseDomainImpl<ExpenditureTreasuryItemDto, ExpenditureTreasuryItemPo> implements ExpenditureTreasuryItemDomain {

    @Resource
    private ExpenditureTreasuryItemRepository expenditureTreasuryItemRepository;

    @Override
    public BaseRepository<ExpenditureTreasuryItemPo> getMapper() {
        return expenditureTreasuryItemRepository;
    }

    @Override
    public Class<? extends BaseRepository<ExpenditureTreasuryItemPo>> getRepositoryClass() {
        return ExpenditureTreasuryItemRepository.class;
    }

}
